﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JavaPlugin
{
    class KeyWord
    {
        private static string[] keywords = {
                                        "package", "import", "byte", "short",
                                        "int", "long", "float", "double", "char",
                                        "boolean", "do", "while", "for", "break",
                                        "continue", "else", "switch", "case", "default",
                                        "private", "public", "protected", "final", "static",
                                        "abstract", "false", "true", "null", "return", "void",
                                        "try", "catch", "finally", "throw", "throws", "new",
                                        "extends", "implements", "class", "instanceof", "class",
                                        "this", "super"
                                    };

        public static bool isKeyWord(string keyWord)
        {
            foreach (string word in keywords)
            {
                if (keyWord.Equals(word))
                {
                    return true;
                }
            }
            return false;
        }
    }
}
